<?php

class databaseEngine {
    
    /*
     * @author Frank Roffel
     * @version 1.0 
     * @description Run the query on the databaseconnection we have
     * 
     */
    public function runQuery($query) {
        $result = mysql_query($query);
        return $result;
    }
    
    /*
     * @author Frank Roffel
     * @version 1.0 
     * @description Make sure the string is sql-injection safe
     * 
     */
    public function dbString($string) {
        return mysql_real_escape($string);
    }
    
    /*
     * @author Frank Roffel
     * @version 1.0 
     * @description Make sure the integer is sql-injection safe
     * 
     */
    public function dbInt($integer) {
        if(is_int($integer)) {
            return $integer;
        }
    }
    
}

?>
